import java.util.Scanner;

public class Ex4_37{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int num = input.nextInt();
		String s = "";
		do{
			int d = num % 2;
			s = (char)('0' + d) + s;
			num /= 2;
		}while (num != 0);
		System.out.println(s);
	}
}
